#ifndef __ULGFX_BALLSTATISTIC_H__
#define __ULGFX_BALLSTATISTIC_H__

#include "ULGfx_Balls.h"
#include "ULCore_Statistic.h"
#include "VSDL_point.h"
#include "VSDL_text.h"

#define BAR_WIDTH	16

#define ULG_BALLSTATISTIC_F_BALL_SET	1

using namespace std;

class ULG_BallStatistic{
private:
	ULG_Ball *ball;
public:
	VSDL_Text msg;
	unsigned char initFlags;
public:
	ULG_BallStatistic();
	ULG_BallStatistic(ULG_Ball *ball);
	void SetULGBall(ULG_Ball *ball);
	void Show(SDL_Surface *destSurf, ULC_BallFrequency &ballStat, bool red, VSDL_Point point);
	void Show(SDL_Surface *destSurf, int ballNumber, int appearedTimes, float rate, bool red, VSDL_Point point);
	int GetWidth();
	int GetHeight();
};

#endif /*__ULGFX_BALLSTATISTIC_H__*/
